import request from '@/utils/request'

// 查询抓取的SpinCoin数据列表
export function listSpinCoin(query) {
  return request({
    url: '/spin/spin-coin/list',
    method: 'get',
    params: query
  })
}

// 查询抓取的SpinCoin数据详细
export function getSpinCoin(id) {
  return request({
    url: '/spin/spin-coin/' + id,
    method: 'get'
  })
}

// 新增抓取的SpinCoin数据
export function addSpinCoin(data) {
  return request({
    url: '/spin/spin-coin',
    method: 'post',
    data: data
  })
}

// 修改抓取的SpinCoin数据
export function updateSpinCoin(data) {
  return request({
    url: '/spin/spin-coin',
    method: 'put',
    data: data
  })
}

// 删除抓取的SpinCoin数据
export function delSpinCoin(id) {
  return request({
    url: '/spin/spin-coin/' + id,
    method: 'delete'
  })
}
